<template>
  <van-field label="标题" v-model="title"></van-field>
    <van-button round @click="submit">发布</van-button>
</template>

<script>
import axios from 'axios'
export default {
    data(){
        return{
            title:''
        }
    },
    methods:{
        submit(){
            axios.post('',this.title).then(res=>{
                console.log(res)
            })
        }
    }
}
</script>

<style>

</style>